package com.qf.feign;

import com.qf.pojo.User;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@RequestMapping("/searchFallback")
public class SearchFeignFallback implements SearchFeigh{
    @Override
    public String test1() {
        return "feign出现了问题，稍后再试";
    }

    @Override
    public User findUserById(Integer id) {

        return new User();


    }
}
